<?php
/**
 * Created by PhpStorm.
 * User: xutao
 * Date: 2018/11/10
 * Time: 10:02
 */
namespace app\admin\validate;
use think\Validate;

class AuthrulesValidate extends Validate{


        protected $rule =   [
            'name'  => 'require',
            'title'   => 'require|max:25',
           'sort'=>'number'
        ];

        protected $message  =   [
            'name.require' => '权限规则必须',
            'title.max'     => '权限名称最多不能超过25个字符',
            'sort.number'     => '排序必须为数字',
        ];





}